<?php
/**
 * Created by PhpStorm.
 * User: zhangxinke
 * Date: 2019/6/1
 * Time: 10:29
 */

namespace app\api\model;


class ApplyshopModel extends BaseModel
{
    protected $table = "xst_area";//数据表

    public function shopadd($uid,$type,$name,$address){//申请开店
        return Db::name("area")->insert([
            'name'=>$name,
            'address'=>$address,
            'uid'=>$uid,
            'type'=>$type,
            'status'=>0
        ]);
    }
    public function shoplist(){
        return Db::name("shop_type")->select();
    }
}